<?php
/**
 * Branch form.
 *
 * @package    Nika
 * @subpackage form
 * @author     Alexey Shapran (alexey.shapran@gmail.com)
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class BranchForm extends BaseBranchForm
{
	public function configure()
	{
		$this->widgetSchema['title'] = new sfWidgetFormInput(array(),array('style'=>'width:300px'));
		$this->widgetSchema['alias'] = new sfWidgetFormInput(array(),array('style'=>'width:300px'));
		$this->widgetSchema['keywords'] = new sfWidgetFormTextarea(array(),array('cols'=>100));
		$this->widgetSchema['description'] = new sfWidgetFormTextarea(array(),array('cols'=>100));
		$this->widgetSchema['body'] = new sfWidgetFormTextareaFCK();

		$this->validatorSchema['title'] = new sfValidatorString(array('required'=>true));
		$this->validatorSchema['alias'] = new sfValidatorRegex(array('pattern'=>'/[^a-zA-Z0-9-_]/', "must_match"=>false));
	}
}
